package com.diamond.webservice.service.impl;

import com.diamond.webservice.entity.JsEcInfo;
import com.diamond.webservice.entity.Page;
import com.diamond.webservice.mapper.JsEcInfoMapper;
import com.diamond.webservice.service.JsEcInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class JsEcInfoServiceImpl implements JsEcInfoService {

    @Autowired
    private JsEcInfoMapper jsEcInfoMapper;

    public List<JsEcInfo> findAllwithPage(int pageNo, int pageSize) {
        Page page = new Page(pageNo,pageSize);
        List<JsEcInfo> byAll = jsEcInfoMapper.queryWaitTransmit(page);
        return byAll;
    }
}
